package com.loser.csp.service.backmanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.loser.csp.dal.dao.MemberMapper;
import com.loser.csp.dal.model.Member;
import com.loser.csp.service.backmanager.MemberServices;
@Component
public class MemberServicesImpl  implements MemberServices{
    @Autowired
    private MemberMapper memberMapper;
    
    @Override
    public int deleteByMemberid(Integer memberid) {
        return memberMapper.deleteByMemberid(memberid);
    }

    @Override
    public int insert(Member record) {
        return memberMapper.insert(record);
    }

    @Override
    public Member selectByMemberid(Integer memberid) {
        return memberMapper.selectByMemberid(memberid);
    }

    @Override
    public int updateByMember(Member record) {
        return memberMapper.updateByMember(record);
    }

}
